/*
 * Point.h
 *
 *  Created on: 2010-12-12
 *      Author: lyyang
 */

#ifndef POINT_H_
#define POINT_H_

class Point {
public:
	Point(): xval(0), yval(0){}
	Point (int x, int y): xval(x), yval(y){};
	int x() const {return xval;}
	int y() const {return yval;}
	Point& x(int x) {xval = x; return *this;}
	Point& y(int y) {yval = y; return *this;}

private:
    int xval;
    int yval;
};

#endif /* POINT_H_ */
